<template>
    <div class="main">
        <div class="box">
            <el-empty image="https://i.postimg.cc/cL0KYSs5/404.gif" description="糟糕，你访问的页面跑到外太空啦！" :image-size= size >
             <el-button type="primary" @click="back">返回</el-button>
            </el-empty>
        </div>
    </div>
</template>
<script>
    export default {
        data(){
            return {
                size:500
            }
        },
        methods:{
            back(){
                history.go(-1)
            }
        }
    }

</script>

<style lang="less" scoped>
.main{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.box{
    width: 40%;
    height: 60%;
}
</style>